<?php
/**
 * The base configurations for the svn bot.
 *
 * This configuration file contains settings for IRC and SVN hosts.
 *
 * This file is the sample configuration file, copy this file to
 * svn-bot-config.php
 */

// ** Trac Bot Version Information ** //
/* Very brief description of bot for use in CTCP VERSION replies */
define('BOT_DESCRIPTION', 'SVN Bot');

// ** IRC Connection Information ** //
/* IRC Host to connect to */
define('IRC_HOST', 'irc.freenode.net');

/* IRC Port to connect to IRC_HOST with */
define('IRC_PORT', 6667);

/* Public IRC nick for this bot */
define('IRC_NICK', 'svn-bot');

/* Real name for this bot */
define('IRC_REALNAME', 'svn-bot');

/* Ident/Username, this is does not have to be the same as the nick */
define('IRC_USERNAME', 'svn-bot');

/* IRC Usermode, if you don't know what this is leave it set to 0 */
define('IRC_USERMODE', 0);

/* IRC Services identification password */
define('IRC_PASSWORD', 'pa55w0rd');

/* IRC Channels to join after connection to the IRC_HOST */
/**
 * This is a key => value pair array, where the key is the channel to join
 * and the value is whether or not the nick is required as the first part
 * the message.
 *
 * true: require the bots nick as first part of message
 * false: do not require the bots nick
 */
$irc_channels = array(
	'#channel_1',
	'#channel_2',
	'#channel_3',
);


// ** Admin configuration ** //
/* Admin users allowed to bypass limits and run restricted commands */
$bot_admins = array(
	'user' => 'host',
);


// ** SVN configuration ** //
/**
 * SVN hosts to query for changesets
 *
 * The url should be to base of your svn installation
 */
$trac_hosts = array(
	'#channel_1' => array('project' => 'project1', 'url' => 'http://svn.channel-1.com', 'trac' => 'http://trac.channel-1.com'),
	'#channel_2' => array('project' => 'project2', 'url' => 'http://svn.channel-2.com', 'trac' => 'http://trac.channel-2.com'),
	'#channel_3' => array('project' => 'project3', 'url' => 'http://svn.channel-3.com', 'trac' => 'http://trac.channel-3.com'),
);
